/*
 * Copyright © 2022 eqxiu.com 北京中网易企秀科技有限公司  All rights reserved.
 */
package com.ls.pattern.factory.method.nvwa;

/**
 * @author liushuang
 * @version 1.0.0
 * @date 2022/4/6 14:00
 */
public class NvWa {

    public static void main(String[] args) {
        AbstractHumanFactory baGuaLu = new HumanFactory();

        Human whiteHuman = baGuaLu.createHuman(WhiteHuman.class);
        whiteHuman.getColor();
        whiteHuman.talk();

        Human yellowHuman = baGuaLu.createHuman(YellowHuman.class);
        yellowHuman.getColor();
        yellowHuman.talk();
    }
}
